﻿<UserControl x:Class="ColorPicker.ColorModels.CMY.CMYDisplay"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             Width="auto" Height="auto">
    <Grid>
        <Grid.Resources>
            <Style TargetType="{x:Type TextBox}">
                <Setter Property="Width" Value="40" />
                <Setter Property="Height" Value="23"/>
                <Setter Property="VerticalAlignment" Value="Center" />
                <Setter Property="Margin" Value="2,2,2,2"/>
            </Style>
            <Style TargetType="{x:Type RadioButton}">
                <Setter Property="VerticalAlignment" Value="Center" />
                <Setter Property="Height" Value="16"/>
            </Style>
            <Style TargetType="{x:Type TextBlock}">
                <Setter Property="VerticalAlignment" Value="Center" />
            </Style>
        </Grid.Resources>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="auto" />
            <ColumnDefinition Width="auto" />
            <ColumnDefinition Width="auto" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto" />
            <RowDefinition Height="auto" />
            <RowDefinition Height="auto" />
        </Grid.RowDefinitions>
        <!--Row 1-->
        <TextBlock  >C:</TextBlock>
        <TextBox Grid.Column="1" Name="txtC" PreviewTextInput="txtR_PreviewTextInput" TextChanged="TextChanged"   />
        <TextBlock  Grid.Row="0" Grid.Column="2" Name="txtCUnit"></TextBlock>
        <!--Row 2-->
        <TextBlock Grid.Row="1"   >M:</TextBlock>
        <TextBox Grid.Column="1" Grid.Row="1"    Name="txtM" TextChanged="TextChanged" />
        <TextBlock  Grid.Row="1" Grid.Column="2" Name="txtMUnit"></TextBlock>
        <!--Row 3-->
        <TextBlock Grid.Row="2"  >Y:</TextBlock>
        <TextBox Grid.Column="1" Grid.Row="2"      Name="txtY" TextChanged="TextChanged" />
        <TextBlock  Grid.Row="2" Grid.Column="2" Name="txtYUnit"></TextBlock>

      
    </Grid>
</UserControl>
